package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.MarketStorage;
import com.cskaoyan.market.db.mapper.MarketStorageMapper;
import com.cskaoyan.market.util.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class AdminStorageServiceImpl implements AdminStorageService {
    @Override
    public void create(MarketStorage marketStorage) {
        SqlSession session = MybatisUtils.getSession();
        MarketStorageMapper storageMapper = session.getMapper(MarketStorageMapper.class);
        storageMapper.insert(marketStorage);
        session.commit();
        session.close();
    }
}
